#pragma once
#include <string>
#include <sstream>
using namespace std;
class Article
{

private:
	int id;
	string name;

public:

	Article()
	{
		id = -1;
		name = "";
	}

	Article(int id, string name)
	{
		this->id = id;
		this->name = name;
	}

	friend istream& operator>>(istream &in, Article& Article)
	{
		string s;
		getline(in, s, '(');
		getline(in, s, ',');
		istringstream iss(s);
		iss >> Article.id;
		getline(in, Article.name, ')');

		return in;
	}


	int GetID(){ return this->id; }
	string GetName(){ return this->name; }

	~Article()
	{
	}
};

